<!doctype html>
<html lang="en">
<head>

<?php include './inc/css.html'; ?>
<style type="text/css">



</style>
</head>

<body class="signin">
<?php include './inc/header.html'; ?>
<div class="wrap">
    <div class="signinpanel limit-width ">
        <div class="row">
            <div class="col-sm-7">
                <div class="signin-info">
                    <div class="logopanel">
                        <h1 class="logo lh10 tc ">[ 2025 ]</h1>
                    </div>
                    
                </div>
            </div>
            <div class="col-sm-5">
                <form >
                    <input type="text" class="form-control userName"  name="userName" placeholder="手机号" />
                    <input type="password" class="form-control password m-b" name="password" placeholder="密码" />
                    <button class="btn btn-block dib _bg_dark _text_teriary" id="loginbtn">登 录</button>
                    <div  class="lh4 tc _text_secondary"> 还没有账号？ <a href="./register.php">立即注册&raquo;</a></div>
                </form>
            </div>
        </div>
        <div class="signup-footer">
            <div class="pull-left">
                &copy; 2025hr All Rights Reserved. 
            </div>
        </div>
    </div>
</div>

</body>
<?php include './inc/js.html'; ?>

<script type="text/javascript">
    $(document).ready(function(){
    $('#loginbtn').on('click',function(e){

        e.preventDefault();
        var userName = $.trim($('input[name=userName]').val());
        var password = $.trim($('input[name=password]').val());

        if(userName.length==0||password.length==0){
            layer.msg('请填写完整登录信息');
            return;
        }


        var data = {
            "userName":userName,
            "password":$.md5(password)
        };


        // $.post('/index.php/WebApp/Users/checkLogin',data ,function(result){
        //     var result = JSON.parse(result);
        //     if(!result.errcode){
        //         layer.msg(result.errmsg,{"time":1000});
        //     }else{
        //         layer.msg(result.errmsg,{"time":1000},function(){
        //           // 登录成功,跳转到登录页
        //           //window.location.href='';
        //         });
        //     }
        // })

        window.location.href='./profile.php'; 
               
    })

    })

</script>
</html>